package com.dudu.enumeration;

/**
 * 接口编码定义
 * @author zx
 *
 */
public enum H5CodeDefinition {
	
	SUCCESS("0000","接口调用成功"),
	NULL_ACCOUNT("0001","应用账号为空"), 
	NULL_SIGN("0002","认证码为空"),
	NULL_TIMESTAMP("0003","时间戳为空"),
	NULL_COMPANYACCOUNT("0004","组织信息和组织账号都为空"),
	NULL_CALLERINFO("0005","主叫信息为空"),
	NULL_NAME_CALLERINFO("0006","主叫姓名为空"),
	NULL_TEL_CALLERINFO("0007","主叫电话号码为空"),
	CHECK_THROUGH("0008","校验通过"),
	NOT_EXISTS_APPACCOUNT("0009","应用账户不存在"),
	NON_APPACCOUNT("0010","您所使用的账号不是应用账号，请使用应用标识"),
	UNAVAILABLE_APPACCOUNT("0011","app账号已停用"),
	ERROR_SIGN("0012","参数sign错误"),
	NON_COMPANYACCOUNT("0013","您所使用的账号不是组织账号，请使用组织标识"),
	UNAVAILABLE_COMPANYACCOUNT("0014","组织账号已停用"),
	UNREGISTERED_COMPANYACCOUNT("0015","组织账号未注册"),
	UNKNOWN_COMPANYNAME("0016","组织名称为空"),
	ACCOUNTBALANCE_INSUFFICIENT("0017","账户余额不足"),
	NULL_ORGACCOUNT("0018","组织账号为空"),
	NOT_EXISTS_PAYCARDINFO("0019","应用不存在对应的充值卡信息，无法使用充值功能"),
	ERROR_CALLEES("0020","参与人信息格式错误"),
	NULLORERROR_CALLERINFO("0021","主叫信息为空或格式错误"),
	NULLORERROR_COMPANYINFO("0022","组织（个人）信息为空或格式错误"),
	ERROR_CAPTCHA("0023","验证码输入错误"),
	EMPTY_COMPANYACCOUNT("0024","未传入组织账号"),	
	ERROR_CALLEE_NUMBER("0025","参与人电话号码为空"),
	ERROR_TELEPHONE_PATTERN("0026","输入的手机号码错误"),
	ERROR_GET_CAPTCHA("0027","获取验证码失败"),
	EMPTY_ENVIRMENT("0028","未配置h5接入环境类型"),	
	EMPTY_ORGCODE("0029","第三方组织编码为空"),	
	UNAVAILABLE_ORGACCOUNT("0030","计费账户不存在"),
	UNMATCH_ORGACCOUNT("0031","使用的计费账号与系统中的计费账号不一致"),
	NULL_CALLCODE("0032","未设置业务平台号码编码(callCode)"),
	NULL_CALLORDER("0033","未设置呼叫顺序(callOrder)"),
	ILLEGAL_CALLORDER("0034","呼叫顺序(callOrder)设置错误，只能设置为caller或called"),
	NULL_TITLE("0035","未设置标题栏文本(title)"),
	OUTOFBOUNDS_TITLE_SIZE("0036","标题栏文本最多为10个字"),
	NULL_CONTENT("0037","未设置内容栏文本(content)"),
	OUTOFBOUNDS_CONTENT_SIZE("0038","内容栏文本最多为60个字"),
	IDENTIFYINGCODE_NOT_MATCH("0040","验证码不匹配"),
	ERROR_HEXCOLOR_VALUE("0041","按钮颜色值错误，只能输入十六进制值"),
	INITDATA_ERROR("0042","回呼号码获取失败，请稍后再试"),
	NAN_OFFSET_ERROR("0043","页面位移参数只能设置为数字"),
	NEGATIVE_OFFSET_ERROR("0044","页面位移参数不能小于0");
	
	private String code;
	
	private String message;
	
	private H5CodeDefinition(String code, String message){
		this.code=code;
		this.message=message;
	}

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

}
